package com.ylk.redis;

import org.springframework.boot.autoconfigure.AutoConfigureAfter;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.data.redis.core.RedisTemplate;

/**
 * @author zxd
 * @date 2025/10/24
 */
@Configuration
@AutoConfigureAfter(RedisConfig.class)
public class RedisServiceConfig {


    @Bean
    public RedisService redisService(RedisTemplate redisTemplate) {
        RedisService redisService = new RedisService();
        redisService.setRedisTemplate(redisTemplate);
        return redisService;
    }

}
